<template>
	<view class="container">
		<uni-grid :column="4">
			<uni-grid-item @click="startMing">
				<view class="griditem">
					<view>
						<uni-icons type="contact" size="32"></uni-icons>
					</view>
					<view>
						<text>起命</text>
					</view>
				</view>
			</uni-grid-item>
			<uni-grid-item key="8">
				<view class="griditem">
					<view>
						<uni-icons type="eye" size="32"></uni-icons>
					</view>
					<view>
						<text>事盘</text>
					</view>
				</view>
			</uni-grid-item>
			<uni-grid-item key="2" @click="lingQian">
				<view class="griditem">
					<view>
						<uni-icons type="fire" size="32"></uni-icons>
					</view>
					<text>灵签</text>
				</view>
			</uni-grid-item>
			<uni-grid-item key="3" @click="huajia">
				<view class="griditem">
					<view>
						<uni-icons type="calendar" size="32"></uni-icons>
					</view>
					<text>六十花甲</text>
				</view>
			</uni-grid-item>
			<uni-grid-item key="4" @click="jieqi">
				<view class="griditem">
					<view>
						<uni-icons type="pyq" size="32"></uni-icons>
					</view>
					<text>节气查询</text>
				</view>
			</uni-grid-item>
			<uni-grid-item key="5" @click="bagua">
				<view class="griditem">
					<view>
						<uni-icons type="navigate" size="32"></uni-icons>
					</view>
					<text>八卦方位</text>
				</view>
			</uni-grid-item>
			<uni-grid-item key="6">
				<view class="griditem" @click="shenghe">
					<view>
						<uni-icons type="map" size="32"></uni-icons>
					</view>
					<text>地支生合</text>
				</view>
			</uni-grid-item>
			<uni-grid-item key="7">
				<view class="griditem">
					<view>
						<uni-icons type="gear" size="32"></uni-icons>
					</view>
					<text>系统信息</text>
				</view>
			</uni-grid-item>
		</uni-grid>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '八字起命',
				test: '',
			}
		},
		onLoad() {},
		methods: {
			async startMing() {
				await uni.navigateTo({
					url:"/pages/ming/qiming"
				})
			},
			async huajia() {
				await uni.navigateTo({
					url: "/pages/huajia/huajia"
				})
			},
			async lingQian() {
				await uni.navigateTo({
					url: "/pages/lingqian/lingqian"
				})
			},
			async bagua() {
				await uni.navigateTo({
					url: "/pages/bagua/bagua"
				})
			},
			async jieqi() {
				await uni.navigateTo({
					url: "/pages/jieqi/jieqi"
				})
			},
			async shenghe() {
				await uni.navigateTo({
					url: "/pages/shenghe/shenghe"
				})
			},
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}

	.logo {
		height: 100px;
		width: 100px;
		margin: 100px auto 25px auto;
	}

	.title {
		font-size: 18px;
		color: #7f0688;
		text-align: center;
	}

	.griditem {
		height: 100%;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		font-size: 16px;
		display: flex;
	}
</style>